package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Autor JiangYunTian
 * @Date 2022/11/11
 * @Function 返回报告
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Report implements Serializable {

    private Long id;//返回报告id

    private String conclusion;//鉴定结果

    private String cover;//鉴定图片

    private Integer score;//分数

    private Long userId;//用户id

    private Long surveyId;//调查问卷id

    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private Date created;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时自动更新
    private Date updated;//更新时间
}
